#include "system_tick.h"
#include "led_sw.h"
#include "beep.h"
#include "rf_receive.h"

#ifdef _12F683
    bit SystemtickFlag = false;
#else
    U8  s_TickCount;
#endif

void SysTick_InitReset(void)
{
    #ifdef _12F683
        // init timer0 for 50ms interrupt
        TMR0 = TIMER0_RELOAD;
        T0CS = 0;
        PSA = 0;
        PS0 = 1;
        PS1 = 1;
        PS2 = 1;
        T0IF = 0;
        T0IE = 1;
    #else
        s_TickCount = 0;
    #endif
}
